'use strict';

function calculate_elements_sum(collection) {
  //在这里写入代码
  return collection.reduce((sum,value)=>(sum+value),0);
}

module.exports = calculate_elements_sum;

// var collection = [1, 2, 3, 4, 5];
// console.log(calculate_elements_sum(collection));